<?php

namespace App\Models\Ads;

use Illuminate\Database\Eloquent\Model;

class Ad extends Model
{
    protected $guarded = [];

    //每个广告属于一个分类
    public function category()
    {
        return $this->belongsTo('App\Models\Ads\Category');
    }
}
